package com.socialweb.service;

import com.socialweb.dao.UserDataDAO;
import com.socialweb.domain.UserData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class UserDataServiceImpl implements UserDataService{

    @Autowired
    private UserDataDAO userDataDAO;
    
    @Transactional
    @Override
    public UserData findById(int id) {
        return userDataDAO.findById(id);
    }

    @Transactional
    @Override
    public void updateAll(UserData userData) {
        userDataDAO.updateAll(userData);
    }
    
}
